<?php 
include '../../public/common/mysql_connect.php';
$name=$_POST['name'];
$sql="insert into class(name) values('{$name}')";
if(mysqli_query($conn,$sql)){
	echo '<script>location="index.php"</script>';
}
?>
